﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using TinyCinema.Bussiness;
namespace TinyCinema.UI.Pages.Schedule._Deal
{
    /// <summary>
    /// Interaction logic for Tickets.xaml
    /// </summary>
    public partial class Tickets : Window
    {
        public Tickets()
        {
            InitializeComponent();
            Loaded += Tickets_Loaded;
            crvReportViewer.ToggleSidePanel = SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None;
        }

        void Tickets_Loaded(object sender, RoutedEventArgs e)
        {
            crvReportViewer.ViewerCore.ReportSource = Bussiness.Schedule.Schedule.LoadTicketReport();
        }

        private void Print_Click(object sender, RoutedEventArgs e)
        {
            crvReportViewer.ViewerCore.PrintReport();
            this.Close();
        }
    }
}
